package edu.java.ishop.model;

import java.util.List;
public class ProductCategory extends Model{

	
	private static final long serialVersionUID = -600045874973648484L;
	private String name;
	private List<Product> productList;
	public List<Product> getProductList() {
		return productList;
	}
	public void setProductList(List<Product> productList) {
		this.productList = productList;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public ProductCategory(long id, String name) {
		super(id);
		this.name = name;
	}
	
	public ProductCategory() {
		super();
	}
	public ProductCategory(long id) {
		super(id);
	}
	public void addProduct(Product product) {
		productList.add(product);
	}
	public String getName() {
		return name;
	}
	

}
